/**
 * @Author : SL
 * @Date : 2019/6/3
 * @Version :1.0
 * @Last Modified by : SL
 * @Last Modified time : 2019/6/3
 **/
//获取环境变量
const env = process.env.NODE_ENV

let MYSQL_CONF
//本地
if (env === 'dev') {
    MYSQL_CONF = {
        host: 'localhost',
        user: 'root',
        password: '123456',
        port: '3306',
        database: 'myblog'
    }
}
//线上
if (env === 'production') {
    MYSQL_CONF = {
        host: 'localhost',
        user: 'root',
        password: '123456',
        port: '3306',
        database: 'myblog'
    }
}

module.exports = {
    MYSQL_CONF
}